<?php


namespace App\Admin\Server;


use App\Models\UserInfo;
use Dcat\Admin\Grid;

class UserInfoServer extends Grid\LazyRenderable
{
    public function grid():Grid
    {
        //展示还不是团长的用户信息
        return Grid::make(new UserInfo(),function (Grid $grid){
            $grid->column('id','用户id');
            $grid->column('nickName','用户姓名');
            $grid->column('avatar','用户头像')->image();
            $grid->column('sex','用户性别');
            $grid->column('tel','手机号');
        });
    }
}